#include <vector>
#include <iostream>
#include <string>

using namespace std;

class human
{
    protected:
        string _name;
    public:
        human() 
        {
        };
        ~human()
        {
            cout << _name << endl;
        };
        string getName() {return _name;};
        void setName(string aName) {_name = aName;};
};


class man : public human
{
};

int main()
{
    vector<man> daddys;
    cout << daddys.capacity() << endl;
    man daddy1; daddy1.setName("daddy1");
    man daddy2; daddy2.setName("daddy2");
    daddys.push_back(daddy1);
    cout << daddys.capacity() << endl;
    daddys.push_back(daddy2);
    cout << daddys.capacity() << endl;

    daddys[0].setName("daddy3");
    daddys[1].setName("daddy4");

    return 1;
}
